package com.hd.trans.framework.languages;

import android.view.View;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.entity.node.BaseNode;
import com.chad.library.adapter.base.provider.BaseNodeProvider;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.hd.trans.R;
import com.hd.trans.common.Constants;
import com.hd.trans.db.bean.ChildTopNode;
import com.hd.trans.db.bean.HuDunLanguage;
import com.hd.trans.framework.dialog.LanguageDialogAdapter;

import org.greenrobot.greendao.annotation.NotNull;

/**
 * 辅助，用于UI显示
 */
public class ChildTopProvider extends BaseNodeProvider {


    @Override
    public int getItemViewType() {
        return Constants.LevelType.CHILD_TOP;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_child_top;
    }

    @Override
    public void convert(@NotNull BaseViewHolder helper, @Nullable BaseNode data) {
        // 数据类型需要自己强转
        /*final ChildTopNode child = (ChildTopNode) data;
        if (child != null) {
        }*/
    }

    @Override
    public void onClick(@NotNull BaseViewHolder helper, @NotNull View view, BaseNode data, int position) {
        /*final ChildTopNode child = (ChildTopNode) data;
        if (child != null) {
        }*/
    }
}